import { appRoutes } from '@/router/addrouter';
import { reactive } from 'vue';
export default function importConfig(_props, eimts) {
  const { emit } = eimts;
  const base = reactive<any>({
    mRouter: null,
  });

  const init = () => {
    routerRead();
  };

  const routerRead = () => {
    base.mRouter = appRoutes;
  };
  /**
   * @exports onCollapse 监听是否收缩了导航栏
   * @param param
   */
  const onCollapse = (param) => {
    emit('onCollapse', param);
  };

  return {
    base,
    onCollapse,
    init,
  };
}
